package com.fishery.customization.service.client;

import com.fishery.customization.handler.AuthorityClientFallback;
import com.fishery.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "fishery-authority-service", fallback = AuthorityClientFallback.class)
public interface AuthorityClient {

	@RequestMapping(value = "/admin/updateBaseTypes/{baseId}/{oldBaseTypes}/{newBaseTypes}", method = RequestMethod.POST)
	public Result updateBaseAdmin(@PathVariable(name = "baseId") String baseId,
								  @PathVariable(name = "oldBaseTypes") String oldBaseTypes,
								  @PathVariable(name = "newBaseTypes") String newBaseTypes);

}
